*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  font-family: "微软雅黑",serif;
}
body{
    font-family: "Microsoft Yahei", sans-serif;
    color:#333;
    line-height: 1.6;
    background-color: #000;
    padding: 20px;

}
/* 导航栏样式 */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px 30px;
    color: #fff;
}
.logo img{
    height: 50px;
}
.nav-links{
    display: flex;
    list-style: none;
    gap: 20px;
}
.nav-links li{
    margin: 0 15px;
}
.nav-links a{
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-links a:hover,.nav-links a.active{
    color: #ffcc00;
}
.logo-btn{
    cursor: pointer;
    color: #ffcc00;
}
/* 轮播图样式 */
.carousel{
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}
.carousel-item{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    display: block;
}
.carousel-item.active{
    opacity: 1;
}
.carousel-item img{
    width: 100%; /* 图片自适应父容器 */
    height: auto;
    display: block; /* 消除图片底部空隙 */
    object-fit: cover;
}
.carousel-text {
    position: absolute;
    top: 90%;       /* 垂直定位到父容器中间 */
    left: 50%;      /* 水平定位到父容器中间 */
    transform: translate(-50%, -50%); /* 反向偏移实现精确居中 */
    z-index: 10;    /* 确保文本在图片上方 */

    background-color: rgba(0, 0, 0, 0.85); /* 优化背景色 */
    color: white;   /* 确保文字可读 */
    padding: 20px;  /* 增加内边距 */
    border-radius: 8px; /* 圆角效果 */
    width: 80%;     /* 限制宽度 */
    max-width: 600px; /* 最大宽度限制 */
    text-align: center; /* 文字水平居中 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* 添加阴影增强层次感 */
}

.title-section{
    text-align: center;
    margin-bottom: 30px;
}
.title-section h1{
    font-size: 36px;
    color: #d4af37;
    margin-bottom: 10px;
}
.title-line{
    width: 80%;
    height: 2px;
    background: linear-gradient(to right,transparent,#d4af37,transparent);
    margin: 0 auto;
}
.skins-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.skin-card{
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.skin-card:hover{
    transform: scale(1.03);
}
.skin-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.skin-desc,
.skin-name,
.skin-date{
    padding: 8px 12px;
}
.skin-desc{
    font-size: 14px;
    color: #d4af37;
}
.skin-name{
    font-size: 18px;
    color: #d4af37;
}
.skin-date{
    font-size: 14px;
    color: #888;
    text-align: right;
}
